#include <iostream>

using namespace std;



class A
{
public:
	A(int a = 0)
	{
		this->a = a;
		cout <<"Constructors ------"<<a<<endl;
		

	}

	~A()
	{
		cout <<"Destructor ------"<<a<<endl;
	}


	void printc()
	{
		cout<<"a = "<<a<<endl;
	}
	
	void printc2()
	{
		cout<<"a = "<<a<<endl;
	}
private:
	int a;
};


class B : public A
{
public:
	B(int a = 0, int b = 0):A(a)
	{
		this->b = b;
		cout <<"Constructors ------"<<a<<endl;
	}

	~B()
	{
		cout <<"Destructor ------"<<b<<endl;
	}


	void printc()
	{
		cout<<"b = "<<b<<endl;
	}

private:
	int b;
};


int main(int argc, char* argv[])
{

	cout <<argv[0]<<endl;
	
	cout <<"size A = " << sizeof A<<endl;
	cout <<"size B = " << sizeof B<<endl;

	system("pause");
	return 0;
}